<?php
namespace Admin\Controller;
use Common\Controller\AdminBaseController;

class IndexController extends AdminBaseController {
    public function index(){
        $admin = M('admin');
        $map['username'] = $_SESSION['user']['username'];
        $data = $admin -> where($map)->find();
        $nav = D('menu') -> getNav();
        $this -> assign('nav',$nav);
        $this -> assign('data',$data);
        $this -> display();
    }
    public function main(){
        $this -> display();
    }
}